package com.asion.qkan.ui.presenter;

import com.asion.qkan.entry.HomeBean;
import com.asion.qkan.ui.contract.HomeContract;

/**
 * Created by asion on 16-10-12.
 */

public class HomePresenter extends HomeContract.Presenter{

    @Override
    public void onStart() {
        super.onStart();
    }

    @Override
    public void setHomeDatas(String category,String id) {
        mModel.getHomeDatas(category,id,new HomeContract.OnHomeGetListener(){

            @Override
            public void onHomeSuccess(HomeBean homeBean) {
                mView.showDataSuccess(homeBean);
            }

            @Override
            public void onHomeError(Throwable t) {
                mView.showDataError(t);
            }
        });
    }
}
